home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cocktail
/
mpp.lha
/
mpp
/
src
/
MakefileM2C
< prev
next >
Wrap
Text File
|
1992-08-18
|
2KB
|
57 lines
# Modula-2 library
LIB = ../../reuse/src
# options for modula compiler
MFLAGS = -nobounds -norange -M. -M$(LIB)
# option to name linked program
OUT = ; mv a.out
MD = m2c $(MFLAGS) # command to compile definition module
MI = m2c $(MFLAGS) # command to compile implementation module
MP = m2c $(MFLAGS) # command to compile program module
ML = m2c $(MFLAGS) -e # command to link program
ED = .def # extension for definition module
EI = .mod # extension for implementation module
EP = .mod # extension for program module
ES = .sym # extension for symbol file (compiled definition)
EO = .o # extension for object file (compiled implementation)
SD = .def # compiler suffix for definition module
SI = .mod # compiler suffix for implementation module
SP = .mod # compiler suffix for program module
all :
# HEAD
Parser$(ES) : Parser$(ED) ; $(MD) Parser$(SD)
Parser$(EO) : Parser$(EI) ; $(MI) Parser$(SI)
Parser$(EO) : Parser$(ES)
Parser$(EO) : Scanner$(ES)
Parser$(EO) : Scanner$(ES)
Parser$(EO) : Table$(ES)
Scanner$(ES) : Scanner$(ED) ; $(MD) Scanner$(SD)
Scanner$(EO) : Scanner$(EI) ; $(MI) Scanner$(SI)
Scanner$(EO) : Scanner$(ES)
Table$(ES) : Table$(ED) ; $(MD) Table$(SD)
Table$(EO) : Table$(EI) ; $(MI) Table$(SI)
Table$(EO) : Table$(ES)
all : mpp
mpp$(EO) : mpp$(EP) ; $(MP) mpp$(SP)
mpp$(EO) : Parser$(ES)
mpp : mpp$(EO) Parser$(EO) Table$(EO) Scanner$(EO) ; $(ML) mpp $(OUT) mpp
# TAIL
# CLEAN : ; rm -f core *.[dimor] ERRORS LISTING
CLEAN : ; rm -f core *.sym *.o